/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-06-29     wyjhotice       the first version
 */
#ifndef APPLICATIONS_AM2305_AM2305_H_
#define APPLICATIONS_AM2305_AM2305_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>

#define AM2305_DATA0_PIN        GET_PIN(B,6)
#define AM2305_DEV_NUM          1
#define AM2305_READ_INTV        5            //测量间隔
typedef struct
{
  int16_t   temp;
  uint16_t  humi;
  rt_base_t data_pin;
}am2305_dev;

#endif /* APPLICATIONS_AM2305_AM2305_H_ */
